#include "pacman.h"
#include "startmenu.h"

#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    //显示开始菜单
    StartMenu menu;
    pacman gameWindow;

   // menu.show();

    //创建游戏窗口

    //pacman w;
    QObject::connect(&menu,&StartMenu::startGame,&gameWindow,&pacman::startGame);
    //w.show();
    menu.show();

    return a.exec();
}
